function showSelected(age) {
    document.getElementById('selected-age-btn').style.display = 'block';
    document.getElementById('selected-age-btn').innerText = age;
    document.getElementById('selected-age').style.display = 'block';
    document.getElementById('zz').style.display = 'block';
    document.getElementsByClassName('age-btn')[0].style.display = 'none';
     console.log("Now the 'zz' element's display is set to 'block'.");
    window.scrollTo(0, document.body.scrollHeight);
  }

  function showSelectedSymptom(symptom) {
    document.getElementById('selected-symptom').querySelector('button').innerText = symptom;
    document.getElementById('selected-symptom').style.display = 'block';
    document.getElementsByClassName('age-btn')[1].style.display = 'none';
    document.getElementById('isorno').style.display = 'block';
    window.scrollTo(0, document.body.scrollHeight);
  }

  function handleResponse(response) {
    document.getElementById('selected-isorno').querySelector('button').innerText = response;
    document.getElementById('selected-isorno').style.display = 'block';
    document.getElementsByClassName('age-btn')[2].style.display = 'none';
    document.getElementById('isorno').style.display = 'block';
    document.getElementById('give').style.display = 'block';
    document.getElementsByClassName('footer')[0].style.display = 'block';
    window.scrollTo(0, document.body.scrollHeight);
  }